2017Spring 協同產品設計實習 (虎尾科大MDE)
  • About
  • Python
  • Archives

第8課 - import, sys.exit( ), random.randint( ) 啟動模組

Date Sat 05 August 2017 By 40423222 Tags notes / Lesson 8

參考資訊: 網站: https://automatetheboringstuff.com/chapter2/ 影片: https://www.youtube.com/watch?v=xJLj6fWfw6k


說明:

import, random and sys

  • import: 啟動模組
    • random模組
      • random.randint(起始值, 最大值): 範圍亂數
    • sys模組
      • sys.exit( ): 強制退出


      random.randint:


      sys.exit:

  • Recent Posts

    • 第16課 - type( ), mutable and Immutable, copy( ) 列表更多應用
    • 第15課 - index( ), append( ), insert( ), remove( ), sort( ) 用於列表的指令
    • 第14課 - forRange with Lists forRange與列表
    • 第13課 - Lists 列表
    • Python flowchart 目錄
  • Categories

    • Python
  • Tags

  • Links

    • Pelican
    • pelican-bootstrap3
    • pelican-plugins
    • Tipue search

© 2017 KMOL · Powered by pelican-bootstrap3, Pelican, Bootstrap

Back to top